package com.yunhe.inter;

import java.util.ArrayList;

import com.yunhe.bean.news;
import com.yunhe.bean.page;

public interface newsInter {
	//查询所有新闻信息
	public ArrayList<news> selectNews(page p);
	//新闻总条目数
	public int totalNews();
	//删除新闻
	public int deleteNews(int id);
	//修改新闻
	public int updateNews(news ns);
	//增加新闻
	public int insertNews(news ns);
	//按ID查询新闻
	public news selectNewForId(int newsid);
}
